package com.jlastu.znb.view;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.jlastu.znb.R;
import com.jlastu.znb.adapter.FollowAdapter;
import com.jlastu.znb.constan.Constance;
import com.jlastu.znb.entity.ShopUserData;

import java.util.ArrayList;
import java.util.List;

public class MineNongyouActivity extends AppCompatActivity {
    private ImageView mBack;
    public static List<ShopUserData> shopUserData = new ArrayList<>();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_nongyou);
        mBack = findViewById(R.id.back);
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
        RecyclerView rec = findViewById(R.id.rec);
        rec.setLayoutManager(new LinearLayoutManager(this));
        FollowAdapter followAdapter = new FollowAdapter(this,Constance.FOLLOW_PAGE);
        followAdapter.setData(shopUserData);
        rec.setAdapter(followAdapter);
    }
}
